package com.aaa.three.controller;

import com.aaa.three.result.AjaxResult;
import com.aaa.three.service.SchduleDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PACKAGE_NAME: com.aaa.three.controller
 * @NAME: schduleDepartmentController
 * @USER: Tprairie
 * @DATE: 2022/2/17
 * @PROJECT_NAME: three
 */
@RestController
@RequestMapping("/dep")
public class SchduleDepartmentController {
    @Autowired
    private SchduleDepartmentService schduleDepartmentServiceImpl;
    @RequestMapping("/outdep")
    public AjaxResult outDeparment(){
        return schduleDepartmentServiceImpl.outDeparment();
    }
    @RequestMapping("/indep")
    public AjaxResult inDeparment(){
        return schduleDepartmentServiceImpl.getAddschedule();
    }
    @RequestMapping("/listdoc/{id}")
    public AjaxResult listDoctor(@PathVariable("id")Integer id){
        return schduleDepartmentServiceImpl.listDoctor(id);
    }
}
